@import url("./normalize.less");

* { /* 火狐 */ /* webkit浏览器 */ /* IE10 */
    user-select: none;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    line-height: 1;

    .scroll-hide;
}

html,
body {
    width: 100%;
    height: auto;
}

body {
    position: relative;
    font-family: MicrosoftYaHei, sans-serif;
    background: #05070ded;
}

@font-face {
    font-family: love;
    src: url('https://cdn.xiaoli.vip/project/moon-card/kt.ttf') format('truetype');
}

img {
    display: block;
}

a:hover,
a:visited,
a:link,
a:active {
    text-decoration: none;
    color: inherit;
}

.scroll-hide {
    &::-webkit-scrollbar {
        display: none;
        width: 0;
    }
}

#app {
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    color: #dfddc6;
}

.el-dialog--center .el-dialog__body {
    padding: 0 8px 16px !important;
}

.el-dialog__title {
    font-size: 20px !important;
    letter-spacing: 1px;
    color: #000;
    font-weight: 600;
}

/* 解决fabric.js 文本框输入时页面跳跃 https://github.com/fabricjs/fabric.js/issues/2904 */
textarea[data-fabric-hiddentextarea] {
    top: 0 !important;
    left: 0 !important;
    padding-top: 0 !important;
}
